//
//  CAnAlgGrandActivity.h
//
//
//  Created by  on 2024/8/30.
//  日内累计的活动数据

#import <Foundation/Foundation.h>
#import "CANalgProtocal.h"

NS_ASSUME_NONNULL_BEGIN

@interface CAnAlgGrandActivity : NSObject<CANalgProtocal>

@property(assign, nonatomic, readonly)uint8_t cmdByte;
@property(assign, nonatomic, readonly) NSUInteger year, month, day;
@property(assign, nonatomic, readonly)NSUInteger timeStamp;// Timestamp, accurate to day

@property(assign, nonatomic, readonly) NSUInteger totalWalkSteps;  // Total steps walked
@property(assign, nonatomic, readonly) NSUInteger totalRunSteps;   // Total running steps
@property(assign, nonatomic, readonly) NSUInteger totalOtherSteps; // Total other steps


@property(assign, nonatomic, readonly) float totalDistance;// Unit: Km
@property(assign, nonatomic, readonly) NSUInteger totalEnergy;// Total energy expenditure, including basal metabolic rate, unit: Kcal.(输出的总能量消耗，包括基础代谢率，单位: Kcal)
@property(assign, nonatomic, readonly) NSUInteger totalActivityEnergy; //Total activity energy expenditure, excluding basal metabolic rate, unit: Kcal.(总活动能量消耗，不包括基础代谢率，单位: Kcal)
@property(assign, nonatomic, readonly) float met; // Current energy consumption,Unit: MET

- (instancetype)initWithData:(NSData *)data;
-(NSNumber *)dataTimeStamp;

@end

NS_ASSUME_NONNULL_END
